package br.ufrj.pesc.consultas;

import java.util.List;

import br.ufrj.pesc.thallesrsm.ISearchHandler;

public abstract class Consulta {
	public long tempoTotal;
	public ISearchHandler banco;
	public final List<Integer> doQuery(){
		long tempoinicial = System.currentTimeMillis();
		List<Integer> retorno = query();
		tempoTotal = (System.currentTimeMillis())- tempoinicial;
		return retorno;
	}
	public  abstract List<Integer> query();

}
